<template>
	<view class="viewbox auto">
		<view class="row p-top30 p-bot30 bot" @click="$toCourses(pageData.goods_id)">
			<image :src="$imgUrls(pageData.img)" mode="aspectFill" class="img m-right10"></image>
			<view class="flex-1 d-flex f-column j-sb">
				<view class="d-flex f-column">
				<text class="ellipsis color_33 size28">{{pageData.name}}</text>
				<text class="ellipsis_2 color_66 size22 m-top20">{{pageData.info}}</text>
				</view>
				<view class="row j-sb a-center ">
					<text class="color_66 size22" v-if="pageData.chapter_num">共 {{pageData.chapter_num}} 章节</text>
				</view>
			</view>
		</view>
	
	</view>
</template>

<script>
	export default {
		name:'xuanList',
		props:['pageData'],
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.img{
		width:254rpx;
		height: 200rpx;
	}
</style>
